/*    */ package cc.s2m.web.s2mBlog.freemarker;
/*    */ 
/*    */ import freemarker.core.Environment;
/*    */ import freemarker.template.TemplateException;
/*    */ import freemarker.template.TemplateExceptionHandler;
/*    */ import java.io.Writer;
/*    */ import org.apache.logging.log4j.LogManager;
/*    */ import org.apache.logging.log4j.Logger;
/*    */ 
/*    */ public class ExceptionHandler
/*    */   implements TemplateExceptionHandler
/*    */ {
/* 14 */   private static Logger log = LogManager.getLogger();
/*    */ 
/*    */   public void handleTemplateException(TemplateException te, Environment env, Writer out) throws TemplateException
/*    */   {
/* 18 */     log.error("freemarker:", te);
/*    */     try {
/* 20 */       TemplateExceptionHandler.HTML_DEBUG_HANDLER.handleTemplateException(te, env, out);
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\s2mBlog.zip
 * Qualified Name:     s2mBlog-3.0.0.WEB-INF.classes.cc.s2m.web.s2mBlog.freemarker.ExceptionHandler
 * JD-Core Version:    0.6.1
 */